package com.timoon.component.behavior.my97datepicker;

import org.apache.wicket.AttributeModifier;
import org.apache.wicket.markup.html.form.TextField;
import org.apache.wicket.model.IModel;

import com.googlecode.wicket.jquery.ui.Options;

/**
 *<p></p>
 *<p></p>
 *<p>Copyright:Copyright(c)2013.4.1</p>
 *<p>Company:timoon</p>
 *@author 付乐天
 *@version 1.0 */
public class My97DatePickerTextField<T> extends TextField<T> {

	/**
	 * 
	 */
	private static final long serialVersionUID = -1794057408352682690L;

	public My97DatePickerTextField(String id, IModel<T> model) {
		super(id, model);
		// TODO Auto-generated constructor stub
		
		this.add(new AttributeModifier("onclick", "WdatePicker();"));
		this.add(new AbstractMy97DatePickerBehavior("", "click", new Options()));
	}

}
